/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package beans;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import model.Control;

/**
 *
 * @author Silvia
 */
@ManagedBean
@RequestScoped
public class newControlBean {
    
    private Integer idAnimal;
    private String controlComment;
    private Control newcontrol;

    
    public Control getNewcontrol() {
        return newcontrol;
    }

    public void setNewcontrol(Control newcontrol) {
        this.newcontrol.setIdControl(idAnimal);
        this.newcontrol.setControlComment(controlComment);
        
    }
    
    public String getControlComment() {
        return controlComment;
    }

    public void setControlComment(String controlComment) {
        this.controlComment = controlComment;
    }

    public Integer getIdAnimal() {
        return idAnimal;
    }

    public void setIdAnimal(Integer idAnimal) {
        this.idAnimal = idAnimal;
    }
    
}
